#ifndef CENTRALTAB_P_H
#define CENTRALTAB_P_H

#include "CentralTab.h"

#ifdef Q_DC
#undef Q_DC
#endif

#ifdef Q_QC
#undef Q_QC
#endif

#define Q_DC(Class) const Class##Private *const d = d_func()
#define Q_QC(Class) const Class *const q = q_func()

class CentralTabPrivate {
    Q_DECLARE_PUBLIC(CentralTab)
public:
    CentralTabPrivate();
    virtual ~CentralTabPrivate();

    void init();

    CentralTab *q_ptr;
    bool edited;
    QString filename;

    bool carryMime;

    virtual QString setTabNameProxy(const QString &tabName); // Set the title of tab
    virtual QString updateTabNameProxy();

    virtual QList<QMenu *> menuListProxy() const;
};

#endif // CENTRALTAB_P_H
